<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>印章管理</title>
</head>
<body class="layui-layout-body">
    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div class="body_right">
            <h4 class="nav_title">印章保管</h4>
            <!--tab开始-->
            <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
                <ul class="layui-tab-title">
                    <li lay-id="SEAL_LIST" class="layui-this">印章列表</li>
                    <li lay-id="APPLY_LIST">申请记录</li>
                    <li lay-id="APPROVE_LIST">授权记录</li>
                    <li lay-id="TAKE_LIST">外带记录</li>
                </ul>
                    
                </ul>
                <div class="layui-tab-content" style="height: 100px;">
                    <div class="layui-tab-item layui-show">
                    <!--内容开始-->
                    	<form action="/admin/devices/list.htm" method="get" class="layui-form no_bordertop">
			                <div class="layui-form-item">
			                    <div class="layui-inline">
			                        <label class="layui-form-label width60">设备编号</label>
			                        <div class="layui-input-inline width150">
			                            <input type="text" class="layui-input" name="devicesId" value="${query.devicesId}" placeholder=" 设备编号 ">
			                        </div>
			                    </div>
			                    <div class="layui-inline">
			                        <label class="layui-form-label width60">状态</label>
			                        <div class="layui-input-block width150">
			                            <select name="interest" lay-filter="aihao">
			                                <option value="0" selected="">待绑定</option>
			                                <option value="1">使用中</option>
			                                <option value="2" >已过期</option>
			                            </select>
			                        </div>
			                    </div>
			                    <div class="layui-inline width80">
			                        <div class="layui-input-inline ">
			                            <button class="layui-btn" lay-submit="" lay-filter="demo1" >搜索</button>
			                        </div>
			                    </div>
			                </div>
			            </form>
			            <table class="layui-table  layui-form" mytable" lay-even="" lay-skin="nob">
			                <thead>
			                <tr>
			                    <th>印章名称</th>
			                    <th>设备数量</th>
			                    <th>强制拍照</th>
			                    <th>紧急申请次数</th>
			                    <th>临时保管员</th>
			                    <th>印章状态</th>
			                    <th>创建时间</th>
			                    <th>操作</th>
			                </tr>
			                </thead>
			                <tbody>
			                	<#list pm.datas as item>
			                    <tr>
			                        <td>${item.sealName}</td>
			                        <td>${item.quantity}</td>
			                        <td>
			                        	<#if item.isForcedPhoto=="Y">是<#else>否</#if>
			                        </td>
			                         <td>${item.limitUrgentApply} 次</td>
			                         <td>
			                         	<a href="javascript:openwinx('选择保管员','/staff/selected/index.htm?type=SELECT_INTERIM_PERSON&id=${item.sealId}','1000','600');" class="layui-btn layui-btn-xs">设置</a>
			                         </td>
			                        <td>
			                        	<@linkage type="SEAL_STATUS" key=item.sealStatus>
		                        		<span class="${linkage.style}">${linkage.name}</span>
		                        		</@linkage>
			                        </td>
			                        <td>${item.createTime?string('yyyy-MM-dd HH:mm:ss')}</td>
			                        
			                        <td class="allbox_a">
			                    		<a href="javascript:javascript:openwinx('查看','/custos/info.htm?sealId=${item.sealId}',1000,600);" class="read_list">查看</a>
			                    	</td>
			                    </tr>
			                    </#list>
			                </tbody>
			            </table>
			            <@p.page pm=pm></@p.page>
                    
                    <!--内容结束-->
           		    </div>
                </div>
            </div>
            <!--tab结束-->
        </div>
     </div>
 <script>
layui.use(['element','laydate'], function(){
	  var $ = layui.jquery,element = layui.element,laydate = layui.laydate; 
	  element.on('tab(docDemoTabBrief)', function(elem){
	  		var id = $(this).attr('lay-id');
	  		if(id == 'APPLY_LIST'){
	  		 	location.href='/custos/applyList.htm';
	  		}
	  		if(id == 'APPROVE_LIST'){
	  		 	location.href='/custos/approveList.htm';
	  		}
	  		if(id == 'TAKE_LIST'){
	  		 	location.href='/custos/takeList.htm';
	  		}
	  });
});
</script>
     
</body>
</html>